package com.zy.web.demo.duoxiancheng.demo1;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/7/28 14:53
 */
public class LoginServlet {
    private static String users;
    private static String passwords;

    synchronized public static void doPost(String user,String password){
        try {
            users = user;
            if (users.equals("a")){
                Thread.sleep(1000);
            }
            passwords = password;
            System.out.println("user="+user+" password="+passwords);
        }catch (InterruptedException e){
            e.printStackTrace();
        }

    }

}
